﻿#ifndef TEXTURE_WRAPPER_H
#define TEXTURE_WRAPPER_H

#include <QWidget>
#include <QTableWidgetItem>
#include <QDebug>
#include "PatternStore.h"

namespace Ui {
class texture_wrapper;
}

class texture_wrapper : public QWidget
{
    Q_OBJECT

public:
    explicit texture_wrapper(QWidget *parent = nullptr);

    void receiver(patternstore *all_store);
    ~texture_wrapper();

private slots:
    void on_tableWidget_itemSelectionChanged();

    void on_pushButton_2_clicked();


    void on_tableWidget_itemClicked(QTableWidgetItem *item);

    void on_pushButton_clicked();

private:
    Ui::texture_wrapper *ui;

    patternstore *t_all_store;
    int cur_sel;
};

#endif // TEXTURE_WRAPPER_H
